{**
 *}


 <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset={$defaultCharset|escape}" />
	<link rel="stylesheet" href="{$baseUrl}/lib/pkp/styles/pkp.css" type="text/css" />
	

	<link rel="stylesheet" href="{$baseUrl}/lib/pkp/styles/common.css" type="text/css" />
	<link rel="stylesheet" href="{$baseUrl}/styles/common.css" type="text/css" />

	<!-- Base Jquery -->
	{if $allowCDN}<script type="text/javascript" src="http://www.google.com/jsapi"></script>
	<script type="text/javascript">{literal}
		// Provide a local fallback if the CDN cannot be reached
		if (typeof google == 'undefined') {
			document.write(unescape("%3Cscript src='{/literal}{$baseUrl}{literal}/lib/pkp/js/lib/jquery/jquery.min.js' type='text/javascript'%3E%3C/script%3E"));
			document.write(unescape("%3Cscript src='{/literal}{$baseUrl}{literal}/lib/pkp/js/lib/jquery/plugins/jqueryUi.min.js' type='text/javascript'%3E%3C/script%3E"));
		} else {
			google.load("jquery", "{/literal}{$smarty.const.CDN_JQUERY_VERSION}{literal}");
			google.load("jqueryui", "{/literal}{$smarty.const.CDN_JQUERY_UI_VERSION}{literal}");
		}
	{/literal}</script>
	{else}
	<script type="text/javascript" src="{$baseUrl}/lib/pkp/js/lib/jquery/jquery.min.js"></script>
	<script type="text/javascript" src="{$baseUrl}/lib/pkp/js/lib/jquery/plugins/jqueryUi.min.js"></script>
	{/if}

	<script type="text/javascript" src="{$baseUrl}/classes/acct/js/ShowHintMATK.js"></script>

</head>

<body onload='javascript:document.getElementById("soct").focus();'>




{strip}
{assign var="pageTitle" value="Chung tu"}
{if ($loaitien) != 'VND' }
	{assign var="socot" value="6"}
{else}
	{assign var="socot" value="5"}
{/if}

{assign var="ngct" value=$smarty.now|date_format:"%d/%m/%Y"}
{/strip}

</br>
<div id = "search" style= "text-align: center; padding: 10px 20px ; width:100%; color: #458B74" >
<strong style="font-size: 2em;" >{$loaiphieu} ({$loaitien})</strong>
	
<table id="head" width="100%">
<tr valign="center">
	<td width="85%" class="title" style = "text-align: center" ><strong>{$loaiphieu} ({$loaitien})</strong></td>

</tr>
<tr height = "10" valign="center">
	<td colspan = "2"><div id="corner" ></div></td>
</tr>


</table>


<form method="post" action="{url Nam= $xNam sttChiTiet = $sttChiTiet mant = $loaitien} ">

<table width = "80%" align = "center">
<tr rowspan = "2">
<td width = "70%" style = "border:1px dotted #6E7FC9">
	T&#7915; Nga&#7923;: <input type="text" name="fNgay1" value="{$Date1|date_format:"%d/%m/%Y"}" id="ngay1" size="10" maxlength="20"   class="textField" />

	&#272;&#7871;n nga&#7923;: <input type="text" name="fNgay2" value="{$Date2|date_format:"%d/%m/%Y"}" id="ngay2" size="10" maxlength="20"   class="textField" />
	
	<br>
	<select name="searchField" size="1" class="selectMenu">
		{html_options options=$fieldOptions selected=$searchField}
	</select>

	<select name="searchMatch" size="1" class="selectMenu">
		<option value="contains"{if $searchMatch == 'contains'} selected="selected"{/if}>C&#243; ch&#7913;a</option>
		<option value="is"{if $searchMatch == 'is'} selected="selected"{/if}>L&#224;</option>
		<option value="startsWith"{if $searchMatch == 'startsWith'} selected="selected"{/if}>B&#7855;t &#273;&#7847;u l&#224; </option>
	</select>


	<input type="text" size="10" name="search" class="textField" value="{$search|escape}" />&nbsp;
</td>

<td width = "15%">
	<input type="submit" value="{translate key="common.search"}" class="button defaultButton" />
</td>

<td width = "15%">
	<input type="button" class="button defaultButton" value="{translate key="common.cancel"}"  onclick="javascript:close_window();" />
</td>
</tr>


<tr>
</tr>
</table>

</form>

<table id= "myDetail"  width="90%" align = "center" cellspacing="0" >
        <tr>
            <th>Ngày</th>
            <th>Số CT</th>
            <th>Diễn giải</th>
	    <th class="soquy">TK</th>
            <th>TK ĐU</th>
            <th>Chi tiết</th>
            <th id="sotien">Phát sinh</th>

	    <th>Tac vu</th>
        </tr>

	{foreach from=$ctkts item=ctkt}
	<tr>
	    <td>
		{$ctkt.ngct|date_format:"%d/%m/%Y"}
	    </td>
	    <td>
		{$ctkt.soct}
	    </td>
	    <td style="text-align:left" id="noidung">
		{$ctkt.diengiai}
	    </td>
	    <td style="text-align:left">
	    {$ctkt.tk}
	    </td>
	    <td style="text-align:left">
		{$ctkt.tkdu}
	    </td>
	    <td style="text-align:left">
		{$ctkt.macttkdu}
	    </td>

	    <td style="text-align:right" id="sotien">
		 {$ctkt.sotienvn|number_format:0:".":"."}
	    </td>
	    <td >

		<a  id = '{$ctkt.idphieu}' class="actiondelrow" href="javascript:void(0);" onclick="editCT('{$host}', '{$username}', '{$password}', '{$databaseName}', '{$xNam}', '{$ctkt.idphieu}', '{$ctkt.soct}', '{$url}');">S&#7917;a </a>  &nbsp &nbsp
		<a  id = '{$ctkt.idphieu}' class="actiondelrow" href="javascript:void(0);" onclick="deleCT('{$host}', '{$username}', '{$password}', '{$databaseName}', '{$xNam}', '{$ctkt.idphieu}', '{$ctkt.soct}', '{$urlDel}');">X&#243;a </a>  
	    </td>
	</tr>
	{/foreach}

</table>

</div>
{include file="common/footer.tpl"}

</body>
</html>

	
